<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p title="abc">text1</p>
		<p title="abcd">text2</p>
		<p title="abcde">text3</p>
		<p title="abcdef">text4</p>
		<p>text5</p>
		<p>text6</p>
	</body>
</html>
<style type="text/css">
	p[title]{
		color: #FF0000;
	}
	p[title = "abc"]{
		color: #FFFF00;
	}
	/* ^属性值以指定值开头 */
	/* $属性值以指定值结尾 */
	/* *属性值包括指定值 */
	p[title ^= "abcde"]{
		color: aliceblue;
	}
</style>